package com.shibo.order.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "weather-client",url = "http://192.168.0.1:8883") //远程调用第三方 服务
public interface WeatherFeginClient {

    @PostMapping("/whapi/json/alicityweather/condition")
    String getWeather(@RequestHeader("Authorization")String auth,
                      @RequestParam("token")String token,
                      @RequestParam("cityId")String cityId);

}
